const path = require("path");

module.exports = {
    context: path.resolve(__dirname, "src"),
    entry: [
        "./index"
    ],
    output: {
        path: path.resolve(__dirname, "../js/"),
        filename: "tetris.js"
    },
    devtool: "source-map",
    module: {
        loaders: [
            {
                test: /\.js$/,
                exclude: /(node_modules)/,
                loader: "babel",
                query: {
                    presets: ["es2015"]
                }
            }
        ]
    },
    externals: {
        "jquery": "jQuery"
    }
};
